package com.manage.oauth.config;

import com.manage.common.core.config.BaseSwaggerConfig;
import com.manage.common.core.dto.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author zhangqing
 * @version V1.0
 * @description 认证服务器Swagger API文档相关配置
 * @date 4/12/2020 7:50 PM
 */
@Configuration
@EnableSwagger2
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.manage.oauth.controller")
                .title("manage-cloud")
                .description("manage-auth后台相关接口文档")
                .contactName("zhangqing")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}
